<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
echo form_open('tester/deleteAllInbox');

        echo '<table align="center" cellspacing="1" border="1" width=600px >';
        echo '<tr><td colspan=4 align=center>Inbox('.$inboxmail->num_rows().')</td></tr>';
        echo '
                
              <th>From</th>
              <th>Subject</th>
              <th>Content</th>
              <th>Action</th>
              ';
        foreach($inboxmail->result() as $row){
            //$images='<img src="'.base_url().'application/templates/images/'.$row->staff_avarta.'" width=100 height=70>';
            //$details = anchor("user/loadUpdateForm/$row->Staff_ID",$images);
            echo "<tr>
                        
                        <td ><input type=checkbox name=checkbox[] id=checkbox[] value=$row->id_com> $row->email_from</td>
                        <td >$row->subject</td>
                        <td >$row->content</td>";
            
            $titleReply = '<img src ="'.base_url().'public/frontend/images/reply.jpeg" width=20 height=15 />';
            $reply = anchor("tester/replyMail/$row->id_com",$titleReply);
            $titleDelete = '<img src ="'.base_url().'public/frontend/images/delete.png" width=20 height=15 />';
            $delte = anchor("tester/deleteInboxMail/$row->id_com",$titleDelete);
            echo "<td  align=\"center\">$delte $reply</td></tr>";
        }?>
            

    <?php
        echo '</table>';
?>
</form>
